
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt" %>

<fmt:setBundle basename="ApplicationResources" />

<c:if test="${not empty CATS_ERROR_PAGE_TITLE}">  
  <h3><fmt:message key="${CATS_ERROR_PAGE_TITLE}"/></h3>
</c:if>

<p>
<c:choose>
  <c:when test="${not empty CATS_ERROR_PAGE_MESSAGE}">  
    <fmt:message key="${CATS_ERROR_PAGE_MESSAGE}"/>
  </c:when>
  <c:when test="${not empty exception}">  
    <c:out value="${exception.message}"/>    
  </c:when>
  <c:otherwise>  
    <fmt:message key="error.generic"/>    
  </c:otherwise>
</c:choose>  
</p>
